package com.example.democlient.network.clientpackets;

import com.example.democlient.network.packet.ClientPacket;
import com.example.democlient.network.serverpackets.HEARTBEAT_REQUEST;



public class HEARTBEAT_RESPONSE extends ClientPacket
{

	private int playerId;
	
	public HEARTBEAT_RESPONSE(int opCode)
	{
		super(opCode);
	}


	@Override
	protected void readImpl()
	{
		playerId = readD();
	}


	@Override
	protected void runImpl()
	{
		System.out.println("心跳 read,id="+playerId);
//		getConnection().sendPacket(new HEARTBEAT_REQUEST(playerId));
	}

}
